import 'package:json_annotation/json_annotation.dart';

part 'setting.g.dart';

@JsonSerializable()
class Setting extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'key')
  String key;

  @JsonKey(name: 'value')
  String value;

  Setting(
    this.id,
    this.key,
    this.value,
  );

  factory Setting.fromJson(Map<String, dynamic> srcJson) =>
      _$SettingFromJson(srcJson);
}
